package com.jyx.log4j;

import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.log4j.lf5.Log4JLogRecord;

/**
 * log4j 测试类
 * @author  	 蒋永星
 * @email       jiangyongxing@myzczk.com
 * @company		www.urbanspace.cn
 * @date 		2016年5月29日 下午4:55:35 
 * @version 	1.0
 */
public class Test {

	public static void main(String[] args) {
		
		Logger logger = Logger.getLogger(Log4JLogRecord.class);
		BasicConfigurator.configure();
		logger.setLevel(Level.INFO);
		logger.debug("this is debug");
		logger.info("this is info");
		logger.warn("this is warning");
		logger.error("this is error");
		logger.fatal("this is fatal error");
		
	}

}
